import request from '@/utils/request'

// 查询学术任务列表
export function meetingAcademicList(query) {
  return request({
    url: '/task/meetingAcademic/list',
    method: 'get',
    params: query
  })
}
// 新增学术任务
export function addmeetingAcademic(data) {
  return request({
    url: '/task/meetingAcademic',
    method: 'post',
    data: data
  })
}


// 获取学术任务详细信息
export function meetingAcademicId(id) {
  return request({
    url: `/task/meetingAcademic/${id}`,
    method: 'get',
  })
}


// 修改学术任务
export function eitHmeetingAcademic(data) {
  return request({
    url: '/task/meetingAcademic',
    method: 'put',
    data: data
  })
}

// 删除学术任务
export function delmeetingAcademic(id) {
  return request({
    url: `/task/meetingAcademic/${id}`,
    method: 'delete'
  })
}

// 导出品类列表
export function exporTmeetingAcademic(data) {
  return request({
    url: '/task/meetingAcademic/export',
    method: 'post',
    data: data
  })
}

// 审核学术任务
export function meetingAcademicAudit(query) {
  return request({
    url: '/task/meetingAcademic/audit',
    method: 'get',
    params: query
  })
}


// 同意学术会议
export function cliCAudit(data) {
  return request({
    url: '/task/meetingAcademic/audit',
    method: 'post',
    params: data
  })
}

// 未提交学术会议
export function uncommit(data) {
  return request({
    url: '/task/meetingAcademic/un-commit',
    method: 'post',
    params: data
  })
}

// 不通过学术会议
export function nopass(data) {
  return request({
    url: '/task/meetingAcademic/no-pass',
    method: 'post',
    data: data
  })
}